@extends('layouts._admin')
@section('title')
    Excel导入商品
@endsection

@section('css')
    <style>
        .dishes-img{
            display: none;
            margin-top:10px;
        }
    </style>
    @endsection
    @section('content')
            <!-- content -->
    <div class="app-content">
        <div ui-butterbar></div>
        <a href class="off-screen-toggle hide" data-toggle="class:off-screen" data-target=".app-aside"></a>
        <div class="app-content-body fade-in-up">
            <!-- COPY the content from "tpl/" -->
            <div class="hbox hbox-auto-xs hbox-auto-sm">
                <div class="col">
                    <div class="wrapper-md ng-scope" ng-controller="FormDemoCtrl">
                        <div class="panel panel-default">
                            <div class="panel-heading font-bold">
                                Excel导入商品
                            </div>
                            <div class="panel-body">
                                @include('shared.errors')

                                <form class="form-horizontal" role="form" method="POST" action="{{ route('goods.excel.store') }}" enctype="multipart/form-data">
                                    {{ csrf_field() }}

                                    <div class="form-group">
                                        <label for="cover" class="col-md-4 control-label">Goods</label>

                                        <div class="col-md-6">
                                            <input accept="application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" type="file" name="goods" id="goods" value="" class="dishes" ui-jq="filestyle" />
                                        </div>
                                    </div>

                                    <div class="line line-dashed b-b  pull-in"></div>

                                    <div class="form-group">
                                        <div class="col-md-6 col-md-offset-4">
                                            <button type="submit" class="btn btn-primary result">
                                                导入
                                            </button>
                                        </div>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection
